package com.chexiehui.jc.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PostCommentInfo implements Serializable {
    private String Id;// (string, optional): 评论id ,
    private String AuthorId;// (string, optional): 评论者id ,
    private String AuthorName;// (string, optional): 评论者名称 ,
    private String AuthorPhoto;// (string, optional): 评论者头像 ,
    private String AuthorRemark;// (string, optional): 评论者简介 ,
    private String Content;// (string, optional): 评论内容 ,
    private int LikeCount;// (string, optional): 点赞数 ,
    private int ReplyCount;// (string, optional): 回复数 ,
    private String CreateTime;// (string, optional): 回复时间 ,
    private List<PostCommentInfo> ChildList;// (Array[PostsCommentChildList], optional): 回复列表 ,
    private boolean IsLike;// (boolean, optional): 是否点赞

    private String ReplyId;// (string, optional): 回复用户id ,
    private String ReplyName;// (string, optional): 回复用户姓名 ,
    private String ReplyContent;// (string, optional): 二级评论（回复的二级评论，只在用户回复二级品论的时候接受前端传过来的数据返回）

    private int tempPosition = -1;

    public String getId() {
        return Id == null ? "" : Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getAuthorId() {
        return AuthorId == null ? "" : AuthorId;
    }

    public void setAuthorId(String authorId) {
        AuthorId = authorId;
    }

    public String getAuthorName() {
        return AuthorName == null ? "" : AuthorName;
    }

    public void setAuthorName(String authorName) {
        AuthorName = authorName;
    }

    public String getAuthorPhoto() {
        return AuthorPhoto == null ? "" : AuthorPhoto;
    }

    public void setAuthorPhoto(String authorPhoto) {
        AuthorPhoto = authorPhoto;
    }

    public String getAuthorRemark() {
        return AuthorRemark == null ? "" : AuthorRemark;
    }

    public void setAuthorRemark(String authorRemark) {
        AuthorRemark = authorRemark;
    }

    public String getReplyId() {
        return ReplyId == null ? "" : ReplyId;
    }

    public void setReplyId(String replyId) {
        ReplyId = replyId;
    }

    public String getReplyName() {
        return ReplyName == null ? "" : ReplyName;
    }

    public void setReplyName(String replyName) {
        ReplyName = replyName;
    }

    public String getContent() {
        return Content == null ? "" : Content;
    }

    public void setContent(String content) {
        Content = content;
    }

    public int getLikeCount() {
        return LikeCount;
    }

    public void setLikeCount(int likeCount) {
        LikeCount = likeCount;
    }

    public String getCreateTime() {
        return CreateTime == null ? "" : CreateTime;
    }

    public void setCreateTime(String createTime) {
        CreateTime = createTime;
    }

    public boolean getIsLike() {
        return IsLike;
    }

    public void setIsLike(boolean isLike) {
        IsLike = isLike;
    }

    public String getReplyContent() {
        return ReplyContent == null ? "" : ReplyContent;
    }

    public void setReplyContent(String replyContent) {
        ReplyContent = replyContent;
    }

    public int getReplyCount() {
        return ReplyCount;
    }

    public void setReplyCount(int replyCount) {
        ReplyCount = replyCount;
    }

    public List<PostCommentInfo> getChildList() {
        return ChildList == null ? ChildList = new ArrayList<>() : ChildList;
    }

    public void setChildList(List<PostCommentInfo> childList) {
        ChildList = childList;
    }

    public boolean isLike() {
        return IsLike;
    }

    public void setLike(boolean like) {
        IsLike = like;
    }

    public int getTempPosition() {
        return tempPosition;
    }

    public void setTempPosition(int tempPosition) {
        this.tempPosition = tempPosition;
    }
}
